<% if resource.errors.any? %>
  <div class="alert alert-error mb-6" role="alert">
    <div class="flex items-start justify-start">
      <div>
        <h4 class="font-black text-sm uppercase tracking">
          <%= I18n.t("errors.messages.not_saved", count: resource.errors.count, resource: resource.class.model_name.human.downcase) %>
        </h4>
        <ul>
          <% resource.errors.full_messages.each do |message| %>
            <li><%= message %></li>
          <% end %>
        </ul>
      </div>
    </div>
  </div>
<% end %>